package com.itheima.mm.mapper;

import com.itheima.mm.dto.UserLoginDTO;
import com.itheima.mm.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName : UserMapper
 * @Description :
 * @Author : CJH
 * @Date: 2023-09-21 19:58
 */
@Mapper
public interface UserMapper {

    /**
     * 根据用户名查找
     *
     * @return
     * @param: username
     **/
    User getByUsername(String username);


    /**
     * 根据用户ID查找
     *
     * @return
     * @param: courseId
     **/
    String findByUserId(Integer userId);


}
